package com.itheima.pinda.DTO.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 角色分配	账号角色绑定
 * </p>
 *
 * @author xsf
 * @since 2021-11-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class PdAuthUserRole extends Model<PdAuthUserRole> {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 角色ID
#c_auth_role
     */
    private Long roleId;

    /**
     * 用户ID
#c_core_accou
     */
    private Long userId;

    /**
     * 创建人ID
     */
    private Long createUser;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
